<?php

namespace addons\shopro\validate\article;

use think\Validate;

class Article extends Validate
{
    protected $rule = [
        'project' => 'require|length:1,100',
        'name'    => 'require|length:1,50',
        'tel'     => 'require|length:11,11',
        'area'    => 'require|length:1,100',
    ];

    protected $message  =   [
        'project'  => '请填写项目名称',
        'name'     => '请填写正确的姓名',
        'tel'      => '请填写正确的联系方式',
        'area'     => '请选择所在区域',
    ];

    protected $scene = [
        'create'  =>  ['peoject','name','tel','area'],
    ];
}
